package com.zmc.product.infrastructure.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmc.common.domain.vo.good.GoodsUpVo;
import com.zmc.product.infrastructure.entity.InventoryGoodsStockEntity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 库存中心的商品库存表
 * 
 * @author zmc
 * @email 
 * @date 2024-11-28 14:03:53
 */
@Mapper
public interface InventoryGoodsStockDao extends BaseMapper<InventoryGoodsStockEntity> {
    boolean lockStock(@Param("vo") GoodsUpVo vo);
    boolean batchUpToInventory(@Param("list") List<GoodsUpVo> list);
    boolean batchUnlockStock(@Param("list") List<GoodsUpVo> list);
    boolean batchReduceStock(@Param("list") List<GoodsUpVo> list);
    boolean batchReturnStock(@Param("list") List<GoodsUpVo> list);
}
